<template>
  <div>
    <!-- <div>count={{ count }}</div>
    <button @click="$emit('add')">+1</button>
    <button @click="$emit('addN', 5)">+5</button> -->
    <input ref="inputRef">

    <div>count={{ value }}</div>
    <button @click="$emit('input',1)">+1</button>
    <button @click="$emit('input', 5)">+N</button>
  </div>
</template>

<script>
export default {
  name: 'SonIndex',
  props: {
    value: {
      type: Number,
      required: true
    }
  },
  methods: {
    focusInput() {
      this.$refs.inputRef.focus()
    }
  }

}
</script>

<style>

</style>
